package com.newblog.model;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class Post  extends ActionForm{
	private int id;
	private Date create;
	private Date edit;
	private String title;
	private String content;
	private int isdraft;
	private String tag;
	private int cid;
	private int bid;
	private int views;
	private int replys;
	private String ip;
	public ActionErrors validate(ActionMapping mapping,HttpServletRequest request){
		System.out.println(this.id);
		return null;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getCreate() {
		return create;
	}
	public void setCreate(Date create) {
		this.create = create;
	}
	public Date getEdit() {
		return edit;
	}
	public void setEdit(Date edit) {
		this.edit = edit;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getIsdraft() {
		return isdraft;
	}
	public void setIsdraft(int isdraft) {
		this.isdraft = isdraft;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	
	public int getBid() {
		return bid;
	}
	public void setBid(int bid) {
		this.bid = bid;
	}
	public int getViews() {
		return views;
	}
	public void setViews(int views) {
		this.views = views;
	}
	public int getReplys() {
		return replys;
	}
	public void setReplys(int replys) {
		this.replys = replys;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	

}
